﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Data.Sql;
using System.Data.SqlTypes;

namespace iResume
{
    public partial class adminViewRecruiter : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Write(Session.SessionID);

            ArrayList RecruiterView = new ArrayList();
            string username = (string)(Session["usernamee"]);
            if (username == null)
            {
                Response.Redirect("loginpage.aspx");
            }
            // string email = (string)(Session["email"]);
            if (username == null)
            {
                Response.Redirect("loginpage.aspx");
            }
            RecruiterView = DBManager.retrieveRecruiter(username);
            Recruiter r = new Recruiter();
            r = (Recruiter)RecruiterView[0];
            Image1.ImageUrl = "recruiterDisplayImage.ashx?id=" + r.Email;
            //Company Information
            lblCompanyName.Text = r.CompanyName;
            lblCompanyUrl.Text = r.CompanyURL;
            lblcompanyAddress.Text = r.CompanyAddress;
            lblPostalCode.Text = r.PostalCode;
            lblCompanyProfile.Text = r.CompanyProfile;
            //Personal Information
            lblName.Text = r.PersonInCharge;
            lblEmail.Text = r.Email;
            lblContactNumber.Text = r.ContactNum;
            lblPosition.Text = r.Position;
            lblDepartment.Text = r.Department;

        }

        protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("Recruiteradmin.aspx");
        }

       
    }
}